import request from '@/utils/request'

// 查询侵权词维护列表
export function listConfigInfringingWord(query) {
  return request({
    url: '/amz/configInfringingWord/list',
    method: 'get',
    params: query
  })
}

// 查询侵权词维护详细
export function getConfigInfringingWord(id) {
  return request({
    url: '/amz/configInfringingWord/' + id,
    method: 'get'
  })
}

// 新增侵权词维护
export function addConfigInfringingWord(data) {
  return request({
    url: '/amz/configInfringingWord',
    method: 'post',
    data: data
  })
}

// 修改侵权词维护
export function updateConfigInfringingWord(data) {
  return request({
    url: '/amz/configInfringingWord',
    method: 'put',
    data: data
  })
}

// 删除侵权词维护
export function delConfigInfringingWord(id) {
  return request({
    url: '/amz/configInfringingWord/' + id,
    method: 'delete'
  })
}

// 导出侵权词维护
export function exportConfigInfringingWord(query) {
  return request({
    url: '/amz/configInfringingWord/export',
    method: 'get',
    params: query
  })
}